<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<div th:replace="fragment/front/meta"></div>
        <title th:utext="${application.siteName + ' - 个人资料'}"></title>
        <div th:replace="fragment/front/css"></div>
        <link rel="stylesheet" type="text/css" th:href="@{/statics/page/css/front/index/index.css}" />
        <link rel="stylesheet" type="text/css" th:href="@{/statics/plugin/checkbox/css/jquery-labelauty.css}" />
        <link rel="stylesheet" type="text/css" th:href="@{/statics/page/css/front/user/left.css}" />
	</head>
	<body>
		<div th:replace="fragment/front/nav"></div>
		
		<div class="site-container">
		    <div class="container">
		        <div class="row">
				  <div class="col-xs-3 col-sm-3 col-md-2 sidebar">
				      <ul class="nav nav-sidebar">
			              <li class="active"><a th:href="@{/front/user/datum.html}">个人资料</a></li>
			              <li><a th:href="@{/front/user/icon.html}">头像设置</a></li>
			              <li><a th:href="@{/front/user/message.html}">我的消息</a></li>
			              <li><a href="">安全设置</a></li>
			          </ul>
				  </div>
				  <div class="col-xs-9 col-sm-9 col-md-10 main">
				      <form id="userDatumForm" class="form-horizontal" method="post" action="">
						  <div class="form-group">
						      <label class="col-sm-2 control-label">账号</label>
						      <div class="col-sm-10 text-label" th:text="${session.code_news_user.userAccount}"></div>
						  </div>
						  <div class="form-group">
                              <label for="userName" class="col-sm-2 control-label">昵称</label>
                              <div class="col-sm-10">
                                  <input type="text" th:value="${session.code_news_user.userName}" class="form-control" id="userName" name="userName" placeholder="昵称"/>
                              </div>
                          </div>
						  <div class="form-group">
                              <label for="userGender" class="col-sm-2 control-label">性别</label>
                              <div class="col-sm-10">
                                  <input type="radio" name="userGender" value="1" th:checked="${session.code_news_user.userGender} == 1" data-labelauty="男"/>
                                  <input type="radio" name="userGender" value="0" th:checked="${session.code_news_user.userGender} == 0" data-labelauty="女"/>
                              </div>
                          </div>
						  <div class="form-group">
                              <label for="userBirth" class="col-sm-2 control-label">出生日期</label>
                              <div class="col-sm-10">
                                  <input type="text" th:value="${#dates.format(session.code_news_user.userBirth,'yyyy-MM-dd')}" class="form-control" id="userBirth" name="userBirth" placeholder="出生日期"/>
                              </div>
                          </div>
                          <div class="form-group">
                              <label class="col-sm-2 control-label">经验值</label>
                              <div class="col-sm-10 text-label" th:text="${session.code_news_user.userExp}"></div>
                          </div>
                          <div class="form-group">
                              <label class="col-sm-2 control-label">用户等级</label>
                              <div class="col-sm-10 text-label" th:text="${session.code_news_user.userLevel}"></div>
                          </div>
                          <div class="form-group">
                              <label class="col-sm-2 control-label">VIP等级</label>
                              <div class="col-sm-10 text-label" th:text="${session.code_news_user.userVip}"></div>
                          </div>
                          <div class="form-group">
                              <label class="col-sm-2 control-label">可用余额</label>
                              <div class="col-sm-10 text-label" th:text="${session.code_news_user.userMoney}"></div>
                          </div>
						  <div class="form-group">
						      <div class="col-sm-offset-2 col-sm-10">
						          <button type="submit" class="btn btn-default" onclick="cnCommonUserDatum.submit()">保存</button>
						      </div>
						  </div>
				      </form>
				  </div>
		        </div>
		    </div>
		</div>
		
		<div th:replace="fragment/front/footer"></div>
        <div th:replace="fragment/front/script"></div>
        <script type="text/javascript" th:src="@{/statics/plugin/laydate/laydate.js}"></script>
        <script type="text/javascript" th:src="@{/statics/plugin/checkbox/js/jquery-labelauty.js}"></script>
        <script type="text/javascript" th:src="@{/statics/page/js/front/user/datum.js}"></script>
    </body>
</html>